package com.woniuxy.main.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.woniuxy.main.pojo.RoomType;

/**
 * 
 * @author Administrator
 *房间类型mapper
 */
@Repository
public interface RoomTypeMapper {
	
	//根据房间号查询房间的类型
	@Select("select *from roomtype where roomtype_id =#{roomtype_id}")
	public RoomType getRoomTypeById(int roomtype_id);
	
	
	
	//添加房间类型
	@Insert("insert into roomtype(type,contain,price,deposit) values(#{type},#{contain},#{price},#{deposit})")
	public boolean addRoomType(RoomType roomType);
	

}
